const path = require('path')

module.exports ={
    mode:'production',
    entry:path.join(__dirname,'src/index.js'),
    output:{
        filename:'index.js',
        path:path.join(__dirname,'./dist'),
    },
    module:{
        rules:[
            {
                test:/\.html/,
                use:['html-loader']
            },
            {
                test:/\.css/,
                use:['style-loader','css-loader']
            }
        ]
    }

}